package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 生产厂家表
 * </p>
 *
 * @author L
 * @since 2023-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("stock_producer")
public class Producer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 厂家ID
     */
    @TableId(value = "producer_id", type = IdType.AUTO)
    private Long producerId;

    /**
     * 厂家名称
     */
    private String producerName;

    /**
     * 厂家简码 搜索用
     */
    private String producerCode;

    /**
     * 厂家地址 
     */
    private String producerAddress;

    /**
     * 厂家电话
     */
    private String producerTel;

    /**
     * 联系人
     */
    private String producerPerson;

    /**
     * 关键字
     */
    private String keywords;

    /**
     * 状态标志（0正常 1停用）sys_normal_disable
     */
    private String status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 更新者
     */
    private String updateBy;


}
